package springbootmybatis.demo.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import springbootmybatis.demo.service.system.user.MybatisUserService;

@Controller
public class TestController {
	private final static Logger log = Logger.getLogger(TestController.class);
	
	@Autowired
	MybatisUserService mybatisUserService;
	
	@RequestMapping("/t1")
	@ResponseBody
	public String t1() {
		log.info("测试log4j");
		Integer i = mybatisUserService.save();
		System.out.println(i);
		return "source";
	}

}
